CPPBIN=dummy

all: python cpp

python: cpp dummy.h py_dummy.cpp
	python setup.py build_ext --inplace

cpp: dummy.h main.cpp
	g++ main.cpp -o $(CPPBIN)

test: all
	@echo
	@echo "*** C++ test ***"
	./dummy arg1 arg2 arg3
	@echo
	@echo "*** Python binding test ***"
	python ./test.py arg1 arg2 arg3

clean:
	rm -rf *.o *.so build $(CPPBIN)
